import Vue from 'vue'
import Router from 'vue-router'

// 首页响应的路由控制
// import searchStock from '../components/searchStock.vue'
import Home from '../components/Home/home/Home.vue'
// const MiaoWu = () => import('../components/Miao-wu/Miao-wu.vue');
import MiaoWu from '../components/Home/Miao-wu/Miao-wu.vue'
// const Album = () => import ('@/components/Home/album/album.vue');
import Album from '../components/Home/album/album.vue'
import Star from '../components/Star/Star.vue'
// const resume = () => 
//简历路由
// const Resume = () => import ('@/components/resume/resume.vue');
import Resume from '../components/resume/resume.vue';

// 后台路由控制
// const Admin = () => import ('@/components/Admin/Admin.vue');
import Admin from '@/components/Admin/Admin.vue';

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    { path: '/', name: 'Home', component: Home, meta: { main: true } },
    { path: '/miaowu', name: 'MiaoWu', component: MiaoWu, meta: { main: true } },
    { path: '/album', name: 'Album', component: Album, meta: { main: true } },
    { path: '/star', name: 'Star', component: Star, meta: { main: true } },

    { path: '/resume', name: 'Resume', component: Resume, meta: { main: false } },

    { path: '/wyy', name: 'Admin', component: Admin, meta: { main: false } },
  ]
})
